LevelBar: Avoid unnecessarily copying allocation
authorDaniel Boles <dboles.src@gmail.com>
Sat, 12 Aug 2017 13:09:09 +0000 (14:09 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Sat, 12 Aug 2017 13:23:55 +0000 (14:23 +0100)
Just use the original allocation, instead of copying it and passing that

gtk/gtklevelbar.c

index 5092b0908051e0867f861489451246e031a4a779..ac42442accbf1c3774751ef587eef538ed39525e 100644 (file)
@@ -434,9 +434,8 @@ gtk_level_bar_allocate_trough_continuous (GtkLevelBar *self,
   inverted = gtk_level_bar_get_real_inverted (self);
 
   /* allocate the empty (unfilled) part */
-  block_area = *allocation;
   gtk_widget_size_allocate (self->priv->block_widget[inverted ? 0 : 1],
-                            &block_area,
+                            allocation
                             baseline,
                             out_clip);